package nz.ac.massey.groupproject.ecs2;

import java.util.ArrayList;


/*
 * Unlike some other engines, our World is strictly Components and Entities.
 * Systems are not part of a World.  In other words, World is fact, not behavior.
 * TODO documentation: this is because different Systems might wanna process
 * different Entity pools (i.e. Worlds), but we still wanna chain these Systems
 * in a single Pipeline.
 */
public class ECSWorld {
	public final ArrayList<ECSEntity>    entities     = new ArrayList<ECSEntity>();
	public final Object                  globalData;

	public ECSWorld()         { globalData = null; }
	public ECSWorld(Object d) { globalData = d;    }

	public void add(ECSEntity ent) {  entities.add(ent);  }
}
